<html>
<body>
Reports <code>assert</code> calls that check a not null value of the declared variable.
<p>Using <code>!!</code> or <code>?:</code> makes your code simpler.</p>
<p>The quick-fix replaces <code>assert</code> with <code>!!</code> or <code>?:</code> operator in the variable initializer.</p>
<p><b>Example:</b></p>
<pre><code>
  fun foo(p: Array&lt;String?&gt;) {
      val v = p[0]
      assert(v != null, { &quot;Should be not null&quot; })
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  fun foo(p: Array&lt;String?&gt;) {
      val v = p[0] ?: error(&quot;Should be not null&quot;)
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>
